package com.fhao.system.domain.sysuser;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fhao.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
@TableName("tb_sys_user")
public class SysUser extends BaseEntity {
    //分配ID (主键类型为number或string）,
    // 默认实现类 com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator(雪花算法)
    @TableId(type = IdType.ASSIGN_ID)
    private Long userId; //主键 不再使用auto_increment(自增)
    private String userAccount;
    private String password;
    private String nickName;
}

















